package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.SysRole;
import com.foreveross.vo.SysUser;

public interface SysUserDAO {
	
	public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public <T extends Object> T updateObject(T t,String id) throws Exception;

	public List<SysUser> findUserList(String name, String account,
			int pageIndex, int pageSize) throws Exception;

	public long getUserListCount(String name, String account) throws Exception;

	public void deleteUser(String userId) throws Exception;
	
	public void deleteUserRole(String userid) throws Exception;
	
	public void deleteRoleMemu(String roleid) throws Exception;
	
	public void deleteRoleHouse(String roleid) throws Exception;

	public SysUser login(String account) throws Exception;

	public String getUserRole(String userId) throws Exception;
	
	public List<SysRole> getUserRoleList(String userId) throws Exception;

	public Boolean updateUserPass(String userId, String pass) throws Exception;
	

}
